<template>
<div>
<div class="car_t">购物车 [ <span><c:if test="${empty fn:length(shoppingCar.items)}">0</c:if><c:if test="${!empty fn:length(shoppingCar.items)}">${fn:length(shoppingCar.items)}</c:if></span> ]</div>
        <div class="car_bg">
       		<!--Begin 购物车未登录 Begin-->
       		<!-- <c:if test="${empty sessionScope.loginUser}"> -->
       		<div class="un_login">还未登录！<a href="${ctx }/pre/Login.jsp" style="color:#ff4e00;">马上登录</a> 查看购物车！</div>
       		<!-- </c:if> -->
            <!--End 购物车未登录 End-->
            <!--Begin 购物车已登录 Begin-->
            <!-- <c:if test="${!empty sessionScope.loginUser }"> -->
              <ul class="cars">
              <!-- <c:forEach var="item" items="${shoppingCar.items}"> -->
              <li>
                	<div class="img"><a href="#"><img src="${ctx}/files/${item.product.fileName }" width="58" height="58" /></a></div>
                    <div class="name"><a href="#">${item.product.name }</a></div>
                    <div class="price"><font color="#ff4e00">￥${item.product.price }</font> X${item.num }</div>
                </li>
              <!-- </c:forEach> -->
            </ul>
            <div class="price_sum">共计&nbsp; <font color="#ff4e00">￥</font><span><c:if test="${empty shoppingCar.sum }">0</c:if><c:if test="${!empty shoppingCar.sum }">${shoppingCar.sum }</c:if></span></div>
            <div class="price_a"><a href="${ctx }/pre/BuyCar.jsp">去购物车结算</a></div>
            <!-- </c:if> -->
            <!--End 购物车已登录 End-->
        </div>
</div>
</template>
